package consts

// 权限类型，供参考
const (
	PermissionTypeMenu   = "menu"
	PermissionTypeBtn    = "btn"
	PermissionTypeAction = "action"
	PermissionTypeApi    = "api"
	PermissionTypeNone   = "none"
)

// AccreditMode 授权模式
type AccreditMode string

const (
	AccreditDenyWithIn  AccreditMode = "deny_no_config"  //未在权限配置中的全部deny
	AccreditAllowWithIn AccreditMode = "allow_no_config" //未在权限配置中的全部allow
)

// 常用状态
const (
	StatusAll = 0

	StatusFalse = 0 //否状态
	StatusTrue  = 1 //是状态

	StatusUnknown = 0
	StatusEnable  = 1 //可用状态
	StatusDisable = 2 //不可用

	StatusCreated = 0 //已创建
	StatusDoing   = 1 //处理中
	StatusSuccess = 2 //处理成功
	StatusFail    = 3 //处理失败
)

// 时间缩写
const (
	MinuteAbbr = "m"
	HourAbbr   = "h"
	DayAbbr    = "d"
	MonthAbbr  = "mo"
	YearAbbr   = "y"
)
